<template>
	<div class="layout-pd">
		<el-upload drag action="api/fileTest" multiple :headers="state.upload.headers">
			<el-icon><upload-filled /></el-icon>
			<div class="el-upload__text">
				将文件拖到此处，或<em>点击上传</em>
			</div>
		</el-upload>
	</div>
</template>

<script setup lang="ts">
import { reactive, ref } from 'vue';
import { UploadFilled } from '@element-plus/icons-vue';
import { Session } from '/@/utils/storage';
const state = reactive({
	upload: {
		isUploading: false,
		headers: { token: Session.get('token') },
	},
	dialog: {
		isShowDialog: false,
		type: '',
		title: '',
		submitTxt: '',
	},
	rules: {
		'ruleForm.name': { required: true, message: '请输入版本号', trigger: 'blur' },
		'ruleForm.effectiveDate': { required: true, message: '请输入生效日期', trigger: 'blur' },
	},
});
</script>
